<?php
namespace app\common\validate;

use think\Validate;

class PostClassValidate extends Validate{

    protected $rule = [
        'name'=>'require',
    ];

    protected $message = [
        'name.require'=>'名称必填',
    ];

    protected $scene = [
        'add' => ['name'],
        'edit' => ['name'],
    ];
}